package net.infamily.dao.impl;

import javax.jdo.Query;

import net.infamily.dao.UserDao;
import net.infamily.model.User;

public class UserDaoImpl extends AbstractDaoImpl<User> implements UserDao {

	@Override
	public User getUserByEmail(String email) {
		Query query = createQuery("select unique from " + User.class.getName() + " where email==:email");
		return (User) query.execute(email);
	}
}
